$(
function(){
	$.getCookie = function(name) {
		return (name = unescape(document.cookie).match("\\b" + name + "=([^;]*)\\b")) ? name[1] : undefined
	};
	$.AiddAjax = function(opt,fn1,fn2) {
		var type=opt.type || "POST",
			href=opt.href,
			param=opt.param;
		$.ajax({
			type:type,
			url:href,		
			data:param,
			cache:false,
			dataType:"json",
			success:fn1,
			beforeSend:fn2
		});
	};
});



